\documentclass[a4paper,11pt]{article}

\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{dcolumn}
\usepackage[latin1]{inputenc}
\usepackage{fancyhdr}
\usepackage{layout}
\usepackage{multirow}
\usepackage{longtable}
\usepackage{commath}
\usepackage{verbatim}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{url}
\usepackage[danish]{varioref}

\setlength{\evensidemargin}{-0.8cm}
\setlength{\oddsidemargin}{-0.8cm}
\setlength{\textwidth}{16cm}
\setlength{\textheight}{21.7cm}

\pagestyle{fancy}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%              CUSTOM COMMANDS  		 %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand\paren[1]{\left(#1\right)}
\newcommand\brackk[1]{\left[#1\right]}
\newcommand\vertt{\left\vert\right.}
\newcommand\var{\textrm{Var}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%    RENEW ALGORITHMS COMMANDS  		 %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\renewcommand{\algorithmicrequire}{\textbf{Input:}}
\renewcommand{\algorithmicensure}{\textbf{Output:}}

\begin{document}

\thispagestyle{empty}
\hspace{6cm} \vspace{6cm}
\begin{center}
\textbf{\Huge {Homework 1}\\ \vspace{1cm}
\Large{Monte Carlo Methods\\in Insurance and Finance}}
\end{center}
\vspace{3cm}
\begin{center}
\large{\textbf{Thomas Lassen}}\\
\large{\textbf{Jeppe Woetmann Nielsen}}
\end{center}
\vspace{6.0cm}
\today

\newpage
~
\newpage

\thispagestyle{empty}
\tableofcontents

\newpage
\pagestyle{fancy}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%              OPGAVE 1              %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\include{Problem1}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%              OPGAVE 2              %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\include{Problem2}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%              OPGAVE 3              %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\include{Problem3}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%              OPGAVE 4              %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\include{Problem4}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%              OPGAVE 5              %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\include{Problem5}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%              APPENDIX              %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\appendix

\include{Problem1Code}

\include{Problem2Code}

\include{Problem3Code}

\include{Problem4Code}

\include{Problem5Code}

\end{document}

